﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace Student_in_file
{
    class Program
    {
        static void Main(string[] args)
        {

        }
    }
    class Student
    {
        public string FirstName;
        public string LastName;
        public int idNumber;
        public static Random rndGenerator = new Random();
        public static int StudentCount;

        public void StudentInfo()
        {

            StudentCount++;
            FirstName = "Вася";
            LastName = Student.StudentCount.ToString();
        }
        public static Student StudentRandomCreater()
        {
            for (int i = 0; i < 16; i++)
            {
                Student.StudentCount++;
                Student student = new Student();
                student.FirstName = "Вася";
                student.LastName = Student.StudentCount.ToString();
                student.idNumber = Student.StudentCount++;
            }
                return student;
            

        }

        public static void SaveStudentsInFile()
        {

        }

    }
}
